package com.lhy.dao;

import com.lhy.domain.DoctorAdvice;
import com.lhy.utils.Pagination;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 汪
 */
@Repository
public interface DoctorAdviceDao {
    /**
     * 查询所有
     * @return
     */
    List<DoctorAdvice> showAllAdvice();

    /**
     * 数据插入
     * @param doctorAdvice
     */
    void addAdvice(DoctorAdvice doctorAdvice);

    /**
     * 删除
     * @param daid
     */
    void deleteAdvice(Integer daid);

    /**
     * 查询
     * @param advice
     * @return
     */
    List<DoctorAdvice> findSomeAdvice(Pagination<DoctorAdvice> page);
}
